package com.yulongtian.principles.demo02.after;

/**
 * @author YulongTian
 * @date 2022/7/8 - 14:49
 * 正方形类
 */
public class Square implements SiBianXing {

    private double size;

    public double getSize() {
        return size;
    }

    public void setSize(double size) {
        this.size = size;
    }

    @Override
    public double getLength() {
        return size;
    }

    @Override
    public double getWidth() {
        return size;
    }
}
